package lab02.test36;

public class Undergraduate extends Student{
    @Override
    public double Average() {
        if (super.Average()>=80){
            System.out.print("优秀");
        }else if (super.Average()>=70&&super.Average()<80){
            System.out.print("良好");
        }else if (super.Average()>=60&&super.Average()<70){
            System.out.print("一般");
        }else if (super.Average()>=50&&super.Average()<60){
            System.out.print("及格");
        }else if (super.Average()<50){
            System.out.print("不及格");
        }
        return super.Average();
    }

    Undergraduate() {
        super();
    }

    Undergraduate(String name, String sclass, double chinese, double math, double computer) {
        super(name, sclass, chinese, math, computer);
    }
}
